import Cookies from 'js-cookie'
//登录token
const TokenKey = 'Login-Token'
const UserKey = "User-Info"
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function setUser(userinfo) {
  return Cookies.set(UserKey, userinfo)
}

export function removeUser() {
  return Cookies.remove(UserKey)
}

export function getUser() {
  return Cookies.get(UserKey)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
